<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * pelamarlainlain.php
 * @author ranuandra
 *
 * 7 Jun 2012 14:20:36
 *
 * 
 */

class Model_Pelamarlainlain extends ORM
{
	protected $_belons_to = array(
	        'mstpelamar' 		=> array('model'	 => 'mstpelamar'),
	);
	
	private $_field = array('mstlainlain_id', 'jawab', 'penjelasan');
	private $_form = array(
							'mstlainlain_id' 				=> '', 
							'jawab'							=> '',
							'penjelasan'					=> '',

	                      );
	
	public $rules = array(
					'mstlainlain_id' 	 => array(
												array('min_length', array(':value', 0)),
											),
					'jawab' 			=> array(
												array('min_length', array(':value', 0)),
											),
					'penjelasan' 		=> array(
												array('min_length', array(':value', 0)),
											),
	);
	
	public function getField()
	{
		return $this->_field;
	}
	
	public function getForm()
	{
		return $this->_form;
		
	}
	
	public function create_data($values)
	{
	    return $this->values($values, $this->_field)->create();
	}		
}